package ext.tianma.changeManager.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 类名: AttrRuleVo </br>
 * 包名: ext.tianma.changeManager.vo
 * 描述: 对象属性上的属性规则
 * @author xucr
 * 创建时间: 2020年11月26日
 * 发布版本: V1.0
 */
public class AttrRuleVo  implements Serializable {
	private static final long serialVersionUID = 1L;
	private String name = "";//属性内部名称
	private String displayName = "";//属性显示名称
	private String value = "";// 属性值
	private String beforeValue = "";//变更前的值
	private String source = "";//来源
	private Integer length;//长度
	private String dataType = "";//String,Long,TimestampDefinition,FloatValue,IntegerValue
	private Boolean singleValued = false;//是否单值
	private Boolean required = false;//是否必须的
	private Map<String,String> enumMap = new HashMap<String,String>();//枚举值列表
	private List<Object> numRange = new ArrayList<Object>();//数字的取值范围
	private Boolean isEdit = true;//字段是否可以编辑,默认可编辑
	private String status = "3";//属性状况： 0：隐藏，1：隐藏值；2：只读，3：读写
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getBeforeValue() {
		return beforeValue;
	}
	public void setBeforeValue(String beforeValue) {
		this.beforeValue = beforeValue;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public Integer getLength() {
		return length;
	}
	public void setLength(Integer length) {
		this.length = length;
	}
	public String getDataType() {
		return dataType;
	}
	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	public Boolean getSingleValued() {
		return singleValued;
	}
	public void setSingleValued(Boolean singleValued) {
		this.singleValued = singleValued;
	}
	public Boolean getRequired() {
		return required;
	}
	public void setRequired(Boolean required) {
		this.required = required;
	}
	public Map<String, String> getEnumMap() {
		return enumMap;
	}
	public void setEnumMap(Map<String, String> enumMap) {
		this.enumMap = enumMap;
	}
	public List<Object> getNumRange() {
		return numRange;
	}
	public void setNumRange(List<Object> numRange) {
		this.numRange = numRange;
	}
	public Boolean getIsEdit() {
		return isEdit;
	}
	public void setIsEdit(Boolean isEdit) {
		this.isEdit = isEdit;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Override
	public String toString() {
		return "AttrRuleVo [name=" + name + ", displayName=" + displayName
				+ ", value=" + value + ", beforeValue=" + beforeValue
				+ ", source=" + source + ", length=" + length + ", dataType="
				+ dataType + ", singleValued=" + singleValued + ", required="
				+ required + ", enumMap=" + enumMap + ", numRange=" + numRange
				+ ", isEdit=" + isEdit + ", status=" + status + "]";
	}
	
}
